package com.jy.modules.cims.data.interact.core.loan.request;

import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;

import com.jy.modules.cims.data.interact.core.BaseHeaderRequestDTO;

/**
 * @classname: Request4049DTO.java
 * @description: 贷款回购结算申请Request
 * @author jieyue-yanjingying
 * @since 2016-08-16 10:37:00
 */
public class Request4049DTO extends BaseHeaderRequestDTO {

	@NotBlank(message = "结算申请编号 applyId不能为空")
	private String applyId;
	
	@NotBlank(message = "合作机构代码 cCode不能为空")
	private String cCode;
	
	@NotBlank(message = "申请人姓名 applyName不能为空")
	private String applyName;
	
	@Valid
	@NotEmpty(message = "回购贷款列表loanList不能为空")
	@Size(min = 1, message = "回购贷款列表loanList不能为空")
	private List<RequestLoanBuybackSettleDTO> loanList;
	
	/**债权列表*/
	private List<RequestLoanBuybackSettleCreditDTO> creditList;

	public String getApplyId() {
		return applyId;
	}

	public void setApplyId(String applyId) {
		this.applyId = applyId;
	}

	public String getCCode() {
		return cCode;
	}

	public void setCCode(String cCode) {
		this.cCode = cCode;
	}
	
	public String getApplyName() {
		return applyName;
	}

	public void setApplyName(String applyName) {
		this.applyName = applyName;
	}

	public List<RequestLoanBuybackSettleDTO> getLoanList() {
		return loanList;
	}

	public void setLoanList(List<RequestLoanBuybackSettleDTO> loanList) {
		this.loanList = loanList;
	}

	public List<RequestLoanBuybackSettleCreditDTO> getCreditList() {
		return creditList;
	}

	public void setCreditList(List<RequestLoanBuybackSettleCreditDTO> creditList) {
		this.creditList = creditList;
	}
}
